package exception;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test3 {
    public static void main(String[] args) {
        try {
            get1();
        } catch (ParseException e) {
            throw new RuntimeException(e); // 抛出异常
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e); // 抛出异常
        }
    }
    public static void get1() throws ParseException, FileNotFoundException {
        String t1 = "2023--11 00:1:18";
        SimpleDateFormat date1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date d1 = date1.parse(t1);
        System.out.println(d1);
        get2();
    }
    public static void get2() throws FileNotFoundException {
        InputStream s =  new FileInputStream("D:/meinv.png");
    }
}
